//
//  Photo.swift
//  开心微博
//
//  Created by 郑开心 on 15/12/10.
//  Copyright © 2015年 郑开心. All rights reserved.
//

import UIKit
import SwiftyJSON

class Photo: NSObject {

    var thumbnail_pic : NSURL!
    var thumbnail_pic_big : NSURL!{
        var urlStr = self.thumbnail_pic.absoluteString
        urlStr = urlStr.stringByReplacingOccurrencesOfString("thumbnail",withString: "bmiddle")
        
        return NSURL(string: urlStr)
    }
    
    
    
    init(json: JSON){
        self.thumbnail_pic = json["thumbnail_pic"].URL
    }
    
    override var description: String {
        return thumbnail_pic.absoluteString
    }
}
